function::s64_arg - Linux


The function::s64_arg command is used for parsing command line arguments that are of type signed 64-bit integer. It is commonly used in conjunction with the sentry library for parsing and validating arguments in a robust and efficient manner.


function::s64_arg [<argument>] [<default>]


Marks the argument as required. If not provided, an error is raised.
Sets a description for the argument. Useful for providing additional information about its purpose.
Prints help information about the argument.


Example 1: Parsing an optional signed 64-bit integer

$ function::s64_arg --description "My Integer"

Example 2: Parsing a required signed 64-bit integer with default value

$ function::s64_arg --required --default "100"

Common Issues

  • Invalid argument type: Ensure that the provided argument is a valid signed 64-bit integer.
  • Missing required argument: If an argument is marked as required, it must be provided.


The function::s64_arg command can be integrated with other Linux commands and tools to create complex argument parsing scenarios. For example, it can be used with the for command to iterate over multiple arguments.

$ for i in $(function::s64_arg); do
  echo "Argument: $i"

Related Commands

  • function::arg: Parses a generic argument.
  • function::s64: Parses a signed 64-bit integer from input.