mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
gio-tool: Respect --attributes
Do not add custom attributes when the command-line explicitly specifies some.
This commit is contained in:
parent
c27be686e6
commit
7dac406b20
@ -192,16 +192,18 @@ handle_list (int argc, char *argv[], gboolean do_help)
|
|||||||
|
|
||||||
g_option_context_free (context);
|
g_option_context_free (context);
|
||||||
|
|
||||||
if (attributes != NULL)
|
if (attributes == NULL)
|
||||||
show_long = TRUE;
|
{
|
||||||
|
attributes = g_strconcat (G_FILE_ATTRIBUTE_STANDARD_NAME ","
|
||||||
attributes = g_strconcat (G_FILE_ATTRIBUTE_STANDARD_NAME ","
|
G_FILE_ATTRIBUTE_STANDARD_TYPE ","
|
||||||
G_FILE_ATTRIBUTE_STANDARD_TYPE ","
|
G_FILE_ATTRIBUTE_STANDARD_SIZE ","
|
||||||
G_FILE_ATTRIBUTE_STANDARD_SIZE ","
|
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN,
|
||||||
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN,
|
NULL);
|
||||||
attributes != NULL ? "," : "",
|
}
|
||||||
attributes,
|
else
|
||||||
NULL);
|
{
|
||||||
|
show_long = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user