paludis Version 3.0.2
The one true package mangler
example_command_line.hh File Reference
#include <paludis/args/args.hh>
#include <paludis/args/log_level_arg.hh>
#include <paludis/paludis.hh>

Go to the source code of this file.

Classes

class  examples::CommandLine

Functions

void examples::show_help_and_exit (const char *const argv[]) PALUDIS_ATTRIBUTE((noreturn))
void examples::show_version_and_exit () PALUDIS_ATTRIBUTE((noreturn))

Detailed Description

Basic command line handling for most examples.

Function Documentation

◆ show_help_and_exit()

void examples::show_help_and_exit ( const char *const argv[])

Show a '–help' message, and exit.

References paludis::Singleton< CommandLine >::get_instance().

◆ show_version_and_exit()

void examples::show_version_and_exit ( )

Show a '–version' message, and exit.