From 7d0d0e5f1570f06564e07f5e55b9bef9db517f8b Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 26 Sep 2018 12:07:48 +0300 Subject: list can now show attributes (secret, primary) --- src/actions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index efffc1b..b164779 100644 --- a/src/actions.c +++ b/src/actions.c @@ -133,8 +133,8 @@ int run_LIST(UserOpt *opt, Conf *conf) { } cklist *list_type = list_make_new(); - ListOpt listOpt = list_make_options(opt->args); + if (listOpt.err) { close_DB(&db); list_free(list_type); @@ -142,13 +142,13 @@ int run_LIST(UserOpt *opt, Conf *conf) { } switch(listOpt._lt) { case LT_PATH: - list_get_paths(&db, list_type); + list_get_paths(&db, list_type, listOpt.attr); break; case LT_PROGRAM: list_get_programs(&db, list_type); break; case LT_TREE: - list_get_path_program_tree(&db, list_type); + list_get_path_program_tree(&db, list_type, listOpt.attr); list_print(list_type); close_DB(&db); list_free(list_type); @@ -183,7 +183,7 @@ int run_SEARCH(UserOpt *opt, Conf *conf) { } DB db = open_DB(opt); cklist *paths = list_make_new(); - list_get_paths(&db, paths); + list_get_paths(&db, paths, 0); close_DB(&db); if (list_size(paths)) { do { -- cgit v1.2.3