Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
generic_opts.cpp File Reference

This file handler generic cli & env options. More...

#include "shambase/exception.hpp"
#include "shambase/print.hpp"
#include "shambase/string.hpp"
#include "shambase/term_colors.hpp"
#include "shamcmdopt/cmdopt.hpp"
#include "shamcmdopt/details/generic_opts.hpp"
#include "shamcmdopt/env.hpp"
#include "shamcmdopt/tty.hpp"
#include <string_view>
#include <vector>
+ Include dependency graph for generic_opts.cpp:

Go to the source code of this file.

Namespaces

namespace  shamcmdopt
 namespace for cli utilities
 

Functions

bool term_support_color ()
 detect if terminal emulator support colored outputs
 
void shamcmdopt::register_cmdopt_generic_opts ()
 Register generic cli and env variables options.
 
void shamcmdopt::process_colors ()
 Detect if the current process should use colored output or not.
 
void shamcmdopt::process_tty ()
 Process the SHAMTTYCOL environment variable to set the number of columns for the terminal.
 
void shamcmdopt::process_cmdopt_generic_opts ()
 Process generic cli and env variables options.
 

Detailed Description

This file handler generic cli & env options.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file generic_opts.cpp.

Function Documentation

◆ term_support_color()

bool term_support_color ( )

detect if terminal emulator support colored outputs

Returns
true
false

Definition at line 50 of file generic_opts.cpp.

+ Here is the call graph for this function: